wayland: Don't send bogus values for cursor surface buffer/scale
authorAlexander Larsson <alexl@redhat.com>
Thu, 30 Apr 2015 08:26:52 +0000 (10:26 +0200)
committerAlexander Larsson <alexl@redhat.com>
Thu, 30 Apr 2015 08:26:52 +0000 (10:26 +0200)
commiteb2c9b433f203eb86854803d12dbb0d5be662a15
tree4392ccce178628fc996336a1b073a2f5294588ea
parentcd54a54346b4097c1ee26fba66c7acac32ec5e30
wayland: Don't send bogus values for cursor surface buffer/scale

I was getting really weird values for scale for the blank cursor used
when hiding the cursor in a GtkEntry when typing, this was caused
by gdk_wayland_device_update_window_cursor sending random values
when the returned buffer was NULL.

We fix this by just not sending any buffer or scale updates in this
case.
gdk/wayland/gdkdevice-wayland.c